class SPClassUserTaskList{
  List<SPClassUserTask> ?spProTaskList = [];
  SPClassUserTaskList({this.spProTaskList});

  SPClassUserTaskList.fromJson(List<dynamic> json) {
    if (json != null) {
      spProTaskList = [];(json as List).forEach((v) { spProTaskList?.add(new SPClassUserTask.fromJson(v)); });
    }
  }

  Map<String, dynamic> ?toJson() {
    // final Map<String, dynamic> data = new Map<String, dynamic>();
    // if (this.spProSchemeList != null) {
    //   data["scheme_list"] =  this.spProSchemeList.map((v) => v.toJson()).toList();
    // }
    // return data;
  }
}

class SPClassUserTask{
  String ?spProId;
  String ?spProTaskName;
  String ?spProDescribe;
  String ?spProDayNum;
  String ?spProPoints;
  String ?spProTaskKey;
  String ?spProAuto;
  String ?spProComplete;
  String ?spProIsReceive;
  String ?spProCanReceive;

  // SPClassUserTask({Map json}){
  //   if(json!=null){
  //     fromJson(json);
  //   }
  // }
  SPClassUserTask.fromJson(Map<String ,dynamic> json){
    spProId=json['id'].toString();
    spProTaskName=json['task_name'].toString();
    spProDescribe=json['describe'].toString();
    spProDayNum=json['day_num'].toString();
    spProPoints=json['points'].toString();
    spProTaskKey=json['task_key'].toString();
    spProAuto=json['auto'].toString();
    spProComplete=json['complete'].toString();
    spProIsReceive=json['is_receive'].toString();
    spProCanReceive=json['can_receive'].toString();

  }
}